home *** CD-ROM | disk | FTP | other *** search
-
-
-
- GetKeywordIndex(39.0) ARP Programmers Manual
-
-
-
- NAME
- GetKeywordIndex - get index of keyword in template string.
-
- SYNOPSIS
- index = GetKeywordIndex( kwrd, template )
- d0 A0 A1
-
- FUNCTION
- This function returns the index value for a keyword in a
- GADS() style keyword template. The "template" string is
- searched for a match against "kwrd" and if found, the index
- into the template string (0,1,...) is returned. If no match
- is found, return value is -1.
-
- INPUTS
- kwrd - A keyword string, typically parsed from the command
- line.
-
- template - An ADOS command template (ex: "TO,FROM,ALL/S").
-
- RESULT
- index - Index to matched keyword, or -1.
-
- EXAMPLES
- GetKeywordIndex("ALL","TO/a,FROM/a,ALL/s") returns 2
-
- GetKeywordIndex("Somefile","TO/a,FROM/a,ALL/s") returns -1
-
- BUGS
- None known.
-
- SEE ALSO
- GADS() for definition of template strings.
-
- AUTHOR
- SDB (docs by CDH)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 1 (printed 9/12/89)
-